<!DOCTYPE html><!-- 显示item信息 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:replace="common/top">
</div>

<div id="Content">
    <div id="Catalog">
        <h2 th:text="${product.getProductId()}"></h2>

        <table class="altrowstable">
            <tr>
                <th>Item ID</th>
                <th>Name</th>
                <th>Kind</th>
                <th>Num</th>
                <th>Price</th>
                <th>Edit</th>
                <th>Delete</th>
            </tr>
            <tr th:each="list,listStat:${itemList}">
                <td th:text="${itemList.get(listStat.index).getItemId()}">Item ID</td>
                <td th:text="${itemList.get(listStat.index).getAttribute1()}+' '+${product.getName()}">Name</td>
                <td th:text="${product.getName()}">Kind</td>
                <td th:text="${itemList.get(listStat.index).getQuantity()}">Num</td>
                <td th:text="${itemList.get(listStat.index).getListPrice()}">Price</td>
                <td><a class="Button" th:href="'/catalog/editItemForm?itemId='+${itemList.get(listStat.index).getItemId()}">编辑</a></td>
                <td><a class="Button" th:href="'/catalog/deleteItem?itemId='+${itemList.get(listStat.index).getItemId()}">删除</a></td>
            </tr>
        </table>

        <a class="Button" th:href="'/catalog/newItemForm?productId='+${product.getProductId()}" th:text="新增单品">新增单品</a>


    </div>
</div>

<div th:replace="common/bottom">
</div>
</body>
</html>